import requset from "@lgq/utils/request";

const get = <T>(url: string, params?: object): Promise<T> => {
  return requset.get(url, { params });
};

const post = <T>(url: string, data?: object): Promise<T> => {
  return requset.post(url, data);
};

export default {
  get,
  post,
};
